import br.com.jambu.cge.*

fixture {
	roleAdmin(Role, authority:'ROLE_ADMIN')
	userAdmin(User) {
		username='admin'
		password='admin'
		email='marciowferreira@marciowferreira.net'
		enabled=true
		accountExpired=false
		accountLocked=false
		passwordExpired=false
	}
	
	roleMaster(Role, authority:'ROLE_MASTER')
	userMaster(User) {
		username='master'
		password='master'
		email='bryanollivie@hotmail.com'
		enabled=true
		accountExpired=false
		accountLocked=false
		passwordExpired=false
	}
	
	roleView(Role, authority:'ROLE_VIEW')
	userView(User) {
		username='usuario'
		password='usuario'
		email='bryanollivie@gmail.com'
		enabled=true
		accountExpired=false
		accountLocked=false
		passwordExpired=false
	}
	
}

post {
	UserRole.create userAdmin, roleAdmin
	UserRole.create userMaster, roleMaster
	UserRole.create userView, roleView
}